class UnpaidIncompleteOrderModel {
  final double? orderAmount;

  UnpaidIncompleteOrderModel({
    this.orderAmount,
  });

  // Factory method to create an UnpaidIncompleteOrderModel from JSON
  factory UnpaidIncompleteOrderModel.fromJson(Map<String, dynamic> json) {
    return UnpaidIncompleteOrderModel(
      orderAmount: json['order_amount'] is int
          ? (json['order_amount'] as int).toDouble()
          : json['order_amount'],
    );
  }

  // Method to convert an Order to JSON
  Map<String, dynamic> toJson() {
    return {
      'order_amount': orderAmount,
    };
  }
}
